package examplecode;

import java.util.Date;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import filereaders.Parser;
import filereaders.ParserFactory;
import filereaders.TxtColumnParser;
import filereaders.TxtRowParser;
import filereaders.XmlParser;


/**
 * This class demonstrates the use of my parsers.
 * @author Paul Dannenberg
 *
 */

public class ParserExample {

    /**
     * @param args
     */
    public static void main(String[] args) {
        String source = "10/01/12";
        DateFormat df = new SimpleDateFormat("mm/dd/yy");
        try {
            Date d = df.parse(source);
            System.out.println(d);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
       
        
        
    }
}